CocosMagic.registerComponent("text",{

    attr : function (node,attributes) {
        for(var attrName in attributes){
            switch(attrName){
                case 'txt':
                    node.setString(attributes[attrName]);
                    break;
            }

        }
    },
    template : "res/components.xml",
    data : {
        title: "cubi",
        content: "riqiang"
    }

});